package org.jeecg.modules.brand.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Description: i_brand
 * @Author: jeecg-boot
 * @Date: 2024-06-02
 * @Version: V1.0
 */
@Data
@TableName("i_brand")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "i_brand对象", description = "i_brand")
public class IBrand implements Serializable {
    private static final long serialVersionUID = 1L;

    /**id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
    /**名称*/
    @JSONField(name = "brandName")
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
    /**logo*/
    @JSONField(name = "brandLogo")
    @Excel(name = "logo", width = 15)
    @ApiModelProperty(value = "logo")
    private String logo;
    /**浏览统计*/
    @JSONField(name = "browseCount")
    @Excel(name = "浏览统计", width = 15)
    @ApiModelProperty(value = "浏览统计")
    private Integer browse;
    /**热度*/
    @JSONField(name = "hotScore")
    @Excel(name = "热度", width = 15)
    @ApiModelProperty(value = "热度")
    private Integer hotScore;

    private LocalDate versionDate;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**修改时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;
    /**删除标记 0正常 1删除*/
    @Excel(name = "删除标记 0正常 1删除", width = 15)
    @ApiModelProperty(value = "删除标记 0正常 1删除")
    @TableLogic
    private String delFlag;
}
